package org.example.entity;

public class Rabbit extends BaseEntity{
    private int weight;
    private static final int DEFAULT_WEIGHT=200;

//    private static int FIXED_WEIGHT=400;
//    private static int[] REWARD_WEIGHT = {
//            400,800,1200,1600,2000,2400,2800,3200,3600,4000,4400,4800,5200,5600,
//    };
    public static int MAX_WEIGHT=6000;
    public static int GROWTH_WEIGHT=200;
    public static int WEIGHT_THRESHOLDVALUE=400;
    private int lastWeightBeforeReward ; // 参考点体重

    public Rabbit(String name) {
        this.weight = DEFAULT_WEIGHT;
        this.lastWeightBeforeReward = DEFAULT_WEIGHT;
        this.name = name;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getLastWeightBeforeReward() {
        return lastWeightBeforeReward;
    }

    public void setLastWeightBeforeReward(int lastWeightBeforeReward) {
        this.lastWeightBeforeReward = lastWeightBeforeReward;
    }
}

